<template>
    <a-layout id="components-layout-demo-top-side">
      <a-layout-header class="header">
        <div class="logo" />
        <a-menu
          theme="dark"
          mode="horizontal"
          :default-selected-keys="['2']"
          :style="{ lineHeight: '64px' }"
        >
          <a-menu-item key="1">
            菜单 1
          </a-menu-item>
          <a-menu-item key="2">
            菜单 2
          </a-menu-item>
          <a-menu-item key="3">
            菜单 3
          </a-menu-item>
        </a-menu>
      </a-layout-header>
      <a-layout-content style="padding: 0 50px">
        <a-breadcrumb style="margin: 16px 0">
          <a-breadcrumb-item>主页</a-breadcrumb-item>
          <a-breadcrumb-item>列表</a-breadcrumb-item>
          <a-breadcrumb-item>应用</a-breadcrumb-item>
        </a-breadcrumb>
        <a-layout style="padding: 24px 0; background: #fff">
          <a-layout-sider width="200" style="background: #fff">
            <a-menu
              mode="inline"
              :default-selected-keys="['1']"
              :default-open-keys="['sub1']"
              style="height: 100%"
            >
              <a-sub-menu key="sub1">
                <span slot="title"><a-icon type="user" />分类 1</span>
                <a-menu-item key="1">
                  项目1
                </a-menu-item>
                <a-menu-item key="2">
                  项目2
                </a-menu-item>
                <a-menu-item key="3">
                  项目3
                </a-menu-item>
                <a-menu-item key="4">
                  项目4
                </a-menu-item>
              </a-sub-menu>
              <a-sub-menu key="sub2">
                <span slot="title"><a-icon type="laptop" />分类 2</span>
                <a-menu-item key="5">
                  项目5
                </a-menu-item>
                <a-menu-item key="6">
                  项目6
                </a-menu-item>
                <a-menu-item key="7">
                  项目7
                </a-menu-item>
                <a-menu-item key="8">
                  项目8
                </a-menu-item>
              </a-sub-menu>
              <a-sub-menu key="sub3">
                <span slot="title"><a-icon type="notification" />分类 3</span>
                <a-menu-item key="9">
                  项目9
                </a-menu-item>
                <a-menu-item key="10">
                  项目10
                </a-menu-item>
                <a-menu-item key="11">
                  项目11
                </a-menu-item>
                <a-menu-item key="12">
                  项目12
                </a-menu-item>
              </a-sub-menu>
            </a-menu>
          </a-layout-sider>
          <a-layout-content :style="{ padding: '0 24px', minHeight: '280px' }">
            内容
          </a-layout-content>
        </a-layout>
      </a-layout-content>
      <a-layout-footer style="text-align: center">
        ©2018 xxx
      </a-layout-footer>
    </a-layout>
  </template>
  
  <style>
  #components-layout-demo-top-side .logo {
    width: 120px;
    height: 31px;
    background: rgba(255, 255, 255, 0.2);
    margin: 16px 28px 16px 0;
    float: left;
  }
  </style>